﻿using Microsoft.CodeAnalysis;

namespace UIOC.CodeAnalysis.Diagnostics;

internal static class TypeMapArgumentMustBeInterfaceDiagnostic {

    public const string DiagnosticId = "UIOC0007";

    private const string Title = "'TypeMap' 函数调用参数类型分析";
    private const string MessageFormat = "'{1}' 使用的{2}的类型 '{0}' 不是接口";
    private const string Description = "分析 'TypeMap' 需要类型的参数调用中指定的具体类型是否是接口。";
    private const string Category = "Usage";

    public static readonly DiagnosticDescriptor Rule = new(
        DiagnosticId,
        Title,
        MessageFormat,
        Category,
        DiagnosticSeverity.Error,
        isEnabledByDefault: true,
        description: Description
    );
}